<admintpl file="header"/>
<link rel="stylesheet" href="__PUBLIC__/css/jquery.datetimepicker.css">
<link rel="stylesheet" href="__PUBLIC__/css/wechat.css">
<link rel="stylesheet" href="__PUBLIC__/css/main.css">
<script src="__PUBLIC__/js/laydate.js"></script>
<style>
    .well input,select{margin-top: 10px;}
    .well select{height: 37px;line-height: 37px}
</style>
</head>

<body>

<div class="manage">
    <span><a href="">优惠券发放</a></span>
</div>

<div class="act_main">

    <a href="#">优惠券发放</a>
    >>
    <span class="tag-list">
        列表管理
    </span>

</div>

<div class="wrap">

    <div class="all-tags">
        <span class="tags-count">总数({$count}条)</span>
    </div>
    <form class="well" method="get" action="__URL__/index">
        <span>手机号：</span> <input type="text" name="Mobile" value="{$Mobile}" placeholder="请输入手机号">
        <span>优惠券id：</span> <input type="text" name="CouponId" value="{$CouponId}" placeholder="请输入优惠券id">
        <select name="Status" style="width: 100px;">
            <option value="" <if condition="$Status eq 0">selected="selected"</if> >请选择</option>
            <option value="1" <if condition="$Status eq 1">selected="selected"</if> >注册失败</option>
            <option value="2" <if condition="$Status eq 2">selected="selected"</if>>发送失败</option>
            <option value="3" <if condition="$Status eq 3">selected="selected"</if>>手机号格式错误</option>
        </select>
        <button type="submit" class="btn btn-primary">查找</button>
    </form>
    <table border="1" cellpadding="2" cellspacing="0" width="80%" align="center" class=" table table-hover table-bordered table-list">
        <tr><td>id</td><td>userid</td><td>手机号</td><td>优惠券id</td><td>优惠券码</td><td>状态</td><td>添加时间</td></tr>
        <foreach name="list" item="v">
            <tr>
                <td>{$v.id}</td>
                <td>{$v.userid}</td>
                <td>{$v.mobile}</td>
                <td>{$v.couponid}</td>
                <td>{$v.couponcode}</td>
                <td>

                     <if condition="$v['status'] eq 1">注册失败</if>
                    <if condition="$v['status'] eq 2">发送失败</if>
                    <if condition="$v['status'] eq 3">手机号格式错误</if>
                <td>{$v.createtime|date='Y-m-d H:i:s',###}</td>
            </tr>

        </foreach>
    </table>
    <div class="pagination">{$page}</div>
</div>


<script type="text/javascript">

    $(function () {

        $('#startlinetime').click(function () {
            laydate({elem: '#startlinetime', format: 'YYYY-MM-DD hh:mm:ss', istime: true});
        });

        $('#endlinetime').click(function () {
            laydate({elem: '#endlinetime', format: 'YYYY-MM-DD hh:mm:ss', istime: true});
        });


    })

</script>

<script src="__PUBLIC__/js/uploadify/jquery2.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/artDialog/artDialog.js"></script>

<script src="__PUBLIC__/js/common.js"></script>
<script src="__PUBLIC__/js/tablesorter/dist/js/jquery.tablesorter.min.js"></script>
<script src="__PUBLIC__/js/tablesorter/dist/js/jquery.tablesorter.widgets.min.js"></script>
<link rel="stylesheet" href="__PUBLIC__/js/tablesorter/dist/css/theme.default.min.css">
</body>
</html>